<div id="createDialog" class="crudDialog">
    <form id="SecPermissioncreateForm" method="post">

        <div class="form-group col-md-12 form-need-hide">
            <label class="col-md-2" for="permissionId">资源编号</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="permissionId" type="text" class="form-control" name="permissionId"/>
            </div>
            <div class="help-block col-md-2"></div>
        </div>
        <div class="form-group col-md-12 form-need-hide">
            <label class="col-md-2" for="systemId">系统编号</label>
            <div class="col-md-8 col-md-offset-2">
                <select class="form-control" name="systemId" id="systemId">
                    <th:block th:each="system : ${systems}">
                        <option th:value="${system.sid}" th:text="${system.name}"></option>
                    </th:block>
                </select>
            </div>
            <div class="help-block col-md-2"></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="name">权限名称</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="name" type="text" class="form-control" name="name" maxlength="100"/>
            </div>
            <div class="help-block col-md-2"></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="value">权限值</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="value" type="text" class="form-control" name="value" maxlength="200"/>
            </div>
            <div class="help-block col-md-2"></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="uri">资源路径</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="uri" type="text" class="form-control" name="uri" maxlength="400"/>
            </div>
            <div class="help-block col-md-2"></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="icon">资源图标</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="icon" type="text" class="form-control" name="icon" maxlength="100" value="fa fa-cube"/>
            </div>
            <div class="help-block col-md-2"><i class="fa fa-cube"></i></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="orders">顺序</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="orders" type="text" class="form-control" name="orders" maxlength="100" value="fa fa-cube"/>
            </div>
            <div class="help-block col-md-2"><i class="fa fa-cube"></i></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="icon">控制类型</label>
            <div class="col-md-8 col-md-offset-2">
                <select name="state" class="form-control">
                    <option value="1">普通</option>
                    <option value="0">公共</option>
                </select>
            </div>
            <div class="help-block col-md-2"></div>
        </div>

        <div class="form-group col-md-12">
            <label class="col-md-2" for="other">其他授权资源</label>
            <div class="col-md-8 col-md-offset-2">
                <input id="other" type="text" class="form-control" name="other" maxlength="500"/>
            </div>
            <div class="help-block col-md-2"></div>
        </div>

        <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
        <input id="pid" type="hidden" class="form-control" name="pid"/>
        <div class="form-group text-right dialog-buttons">
            <button class="waves-effect waves-button" id="btn-SecPermission-submit">保存</button>
            <a class="waves-effect waves-button" href="javascript:;" onclick="createDialog.close();">取消</a>
        </div>
    </form>
</div>